package com.graduation_design.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.graduation_design.entity.AppCartItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 从南
* @description 针对表【app_cart_item】的数据库操作Mapper
* @createDate 2024-02-16 18:15:58
* @Entity com.graduation_design.entity.AppCartItem
*/
public interface AppCartItemMapper extends BaseMapper<AppCartItem> {

    // @Param(Constants.WRAPPER) Wrapper queryWrapper
    // 在sql中这样写：${ew.customSqlSegment}，是mybatis plus的写法，可以把queryWrapper 的条件都注入进去。
    List<AppCartItem> getCartItemsWithProductInfo(@Param(Constants.WRAPPER) QueryWrapper<AppCartItem> wrapper);
}




